/**
 * 进行SM3 加密
*/

import {sm3} from 'sm-crypto'
//const sm3 = require('sm-crypto').sm3;

export const encrypt = (txt:string) =>{
    let encryptData = sm3(txt);
    return encryptData;
}
